package com.app.service.impl.superarket;

import com.app.mapper.supermarket.OddJobPicListMapper;
import com.app.mapper.supermarket.OddJobReleaseMapper;
import com.app.model.supermarket.OddJobPicListModel;
import com.app.model.supermarket.OddJobReleaseModel;
import com.app.service.supermarket.OddJobPicListService;
import com.app.service.supermarket.OddJobReleaseService;
import com.app.vo.supermarket.OddJobReleaseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class OddJobReleaseServiceImpl implements OddJobReleaseService {
    @Autowired
    OddJobReleaseMapper oddJobReleaseMapper;


    @Override
    public int insert(OddJobReleaseModel model) {
        return oddJobReleaseMapper.insert(model);
    }

    @Override
    public void update(OddJobReleaseModel model) {
        oddJobReleaseMapper.update(model);
    }

    @Override
    public void delete(int id) {
        oddJobReleaseMapper.delete(id);
    }

    @Override
    public List<OddJobReleaseModel> getOddJobReleaseListByModel(OddJobReleaseModel model) {
        return oddJobReleaseMapper.getOddJobReleaseListByModel(model);
    }

    @Override
    public List<OddJobReleaseVo> getOddJobReleaseListByState(OddJobReleaseVo model) {
        return oddJobReleaseMapper.getOddJobReleaseListByState(model);
    }

    @Override
    public OddJobReleaseModel getOddJobReleaseById(int id) {
        return oddJobReleaseMapper.getOddJobReleaseById(id);
    }

    @Override
    public String getAddressById(Integer id) {
        return oddJobReleaseMapper.getAddressById(id);
    }

    @Override
    public int countMid(int mid) {
        return oddJobReleaseMapper.countMid(mid);
    }

    @Override
    public int selectNumber(int id) {
        return oddJobReleaseMapper.selectNumber(id);
    }

    @Override
    public OddJobReleaseModel getOddById(int id, int mid) {
        return oddJobReleaseMapper.getOddById(id,mid);
    }
}
